package com.cjl.dental_clinic.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cjl.dental_clinic.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 发票信息表，关联患者和医生(Order)实体类
 *
 * @author makejava
 * @since 2024-04-12 17:09:24
 */
@Data
@Accessors(chain = true)
@TableName("order_s")
public class Order extends BaseEntity{
    // 患者ID
    @TableField("patient_id")
    private Integer patientId;
    // 医生ID
    @TableField("doctor_id")
    private Integer doctorId;
    // 账单金额
    @TableField("amount")
    private BigDecimal amount;
    // 账单日期和时间
    @TableField("invoice_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    private Date invoiceDate;
    // 账单支付状态
    @TableField("pay_status")
    private Integer payStatus;
}


